from django.db import models

# Create your models here.
class User(models.Model):
    username = models.CharField('用户名',max_length=20)
    password = models.CharField('密码',max_length=80)
    phone = models.CharField('手机',max_length=11)
    address = models.CharField('地址',max_length=200)
    email = models.EmailField('邮箱地址')


    class Meta:
        db_table = 'user'
        verbose_name = '用户'
        verbose_name_plural = verbose_name

    def __str__(self):
        return self.username